//
// Created by Joey on 2019/12/22.
//

#pragma once

#include <iostream>
#include <fstream>

#include "employee.h"
#include "manager.h"
#include "boss.h"

#define FILENAME "empFile.json"
#define KEY_OF_PERSONNEL_ARRAY "personnel_array"
#define KEY_OF_PERSONNEL_ID "id"
#define KEY_OF_PERSONNEL_NAME "name"
#define KEY_OF_PERSONNEL_DEPTID "deptId"

using namespace std;

class PersonnelManager {

public:
    PersonnelManager();

    void showMenu();

    void addEmp();

    void save();

    void read();

    void showEmps();

    void existSystem();

    ~PersonnelManager();

    // 记录文件中的人数个数
    int m_EmpNum;
    // 员工数组的指针
    Personnel **m_EmpArray;
};